# -*- coding:utf-8 -*-
"""
@Time : 2021/3/16 00:16
@Author: langengel
@Des: 系统公共api
"""
from fastapi import APIRouter

from application.common.sms import get_code

from extends.wechat.server import server_check, wechat_listen

common = APIRouter(prefix="/api/v1")

common.get("/wechat/server/listen", tags=["公共API"], summary="微信服务器有效性验证")(server_check)
common.post("/wechat/server/listen", tags=["公共API"], summary="微信服务器消息监听")(wechat_listen)
common.post("/phone/code", tags=["公共API"], summary="获取验证码")(get_code)
